package com.fqgj.sentry.policy.exception;

import com.fqgj.common.api.enums.ErrorCodeEnum;
import org.springframework.http.HttpStatus;


public enum RuleErrorCodeEnums implements ErrorCodeEnum {
    rule_not_exist_condition_error(2001, "请完善规则条件", HttpStatus.OK),
    rule_not_exist_error(2001, "请选择待操作的规则", HttpStatus.OK),
    rule_name_not_exist_error(2001, "请完善规则名称", HttpStatus.OK);




    private Integer code;
    private String msg;
    private HttpStatus httpStatus;


    RuleErrorCodeEnums(Integer code, String msg, HttpStatus httpStatus) {
        this.code = code;
        this.msg = msg;
        this.httpStatus = httpStatus;
    }

    public RuleErrorCodeEnums setCode(Integer code) {
        this.code = code;
        return this;
    }

    public RuleErrorCodeEnums setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public RuleErrorCodeEnums setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
        return this;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }
}
